{:W('Template/top')}
<div class="wrapper clearfix content" style="position: relative;border: 1px solid #ddd">
    {:W('Template/left')}
    <div class="rightbox pull-right">
        <div class="ur-here">您当前的位置：<a href="#">平台账户余额管理</a>&gt;平台账户充值记录</div>
        <div class="cTitle2">平台账户充值记录</div>
        <div class="main-search">
        </div>
        <form method="post" action="">
            <input type="hidden" id="code" value="{$Think.session.checkApplyCode}">
            <input id="chkState" type="hidden" value="{:U('Forum/index')}"/>
            <table class="cTable table-hover" width="100%">
                <tr>
                    <th width='8%'>编号</th>
                    <th width='20%'>名称</th>
                    <th width='15%'>金额</th>
                    <th width='15%'>充值类型</th>
                    <th width='15%'>状态</th>
                    <th width='15%'>充值时间</th>
                    <th width='15%'>操作</th>
                </tr>
                <volist name='info' id='v'>
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.entity_name}</td>
                        <td id="money-right" class='text-c5'><dfn>&yen;{$v.amount|GetYuan}</dfn></td>
                        <td class="text-c1">
                            <if condition="$v['topup_type'] eq 1">
                                现金充值
                            <elseif condition="$v['topup_type'] eq 2"/>
                                刷卡充值
                            <elseif condition="$v['topup_type'] eq 3"/>
                                支票充值
                            <elseif condition="$v['topup_type'] eq 4"/>
                                银行转账
                            <elseif condition="$v['topup_type'] eq 5"/>
                                支付宝转账
                            </if>
                        </td>
                        <td>
                            <if condition="$v.state eq 1">
                                <span style="color:blue">已提交,待审核</span>
                                <elseif condition="$v.state eq 2"/>
                                <span style="color:darkgreen">已审核</span>
                                <elseif condition="$v.state eq 3"/>
                                <span style="color:red">已拒绝</span>
                            </if>
                        </td>
                        <td>{$v.create_time}</td>
                        <td>
                            <div class="btn-group">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                                        aria-expanded="false">
                                    操作<span class="caret"></span>
                                </button>
                                <if condition="$v['state'] eq 1">
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="javascript:void(0)"
                                               onclick="changeApplyState({$v.id}, '{$v.id|setEncrypt}', {$v.operator_id}, '{:Common\\Top::ApplyStatePass}')">已审核</a>
                                        </li>
                                        <li><a href="javascript:void(0)"
                                               onclick="changeRejectState({$v.id}, '{$v.id|setEncrypt}', {$v.operator_id}, '{:Common\\Top::ApplyStateReject}')">拒绝</a>
                                        </li>
                                    </ul>
                                    <else/>
                                </if>
                            </div>
                        </td>
                    </tr>
                </volist>
            </table>
        </form>
        <notempty name="info">
            <div class="pagebox">
                {$page}
            </div>
        </notempty>
    </div>
</div>

{:W('Template/bottom')}
<script src="__PUBLIC__/js/credit.js"></script>
</body>
</html>